package reflect;

public class ArgsDemo {
    //变长参数
    public static void main(String[] args) {
        dosomething();
        dosomething("a","b","c");
        dosomething("a","b");
        dosomething("a");

    }
    public static void dosomething(String... args){
        System.out.println(args.length);
    }
}
